home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
System Booster
/
System Booster.iso
/
Texteditors
/
BED
/
Rexx
/
SaveBlk.bed
< prev
next >
Wrap
Text File
|
1996-09-26
|
830b
|
54 lines
/*
** $VER: SaveBlk.bed 1.0 (03.01.96)
**
** Save the currently selected block to a file on disk.
*/
OPTIONS RESULTS
OPTIONS FAILAT 21
PARSE ARG name
GetBlkInfo
PARSE VAR RESULT mode . sel_y sel_x
IF mode = "OFF" THEN DO
SetStatusBar "No block selected!"
END; ELSE DO
SetDisplayLock ON
SetInputLock ON
IF name = "" THEN DO
GetFilePath PATH
RequestFile SAVEMODE 'TITLE "Save Selected Block"' RESULT
IF RC ~= 0 THEN EXIT
name = RESULT
END
GetCursorPos
PARSE VAR RESULT y x .
TaskID = Pragma('ID')
SaveClip QUIET NOICON NOBACKUP 'T:OldClip' || TaskID
CopyBlk
SaveClip name
OpenClip 'T:OldClip' || TaskID
Move sel_y sel_x
MarkBlk
Move y x
SetDisplayLock OFF
SetInputLock OFF
END
IF ~Show(L,'rexxsupport.library') THEN DO
AddLib('rexxsupport.library',0,-30)
END;
Delete("T:OldClip-" || TaskID)